package cn.cl.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

/**
 * 标题：
 * 作者：何处是归程
 * 时间：2020/4/3 - 8:31
 */
@Service
public class AsyncService {
	@Async
	public void hello() {
		try {
			TimeUnit.SECONDS.sleep(3);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println("hello");
	}
}
